package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 办公用品入库申请业务对象 oa_admin_entry
 *
 * @author ruoyi
 * @date 2023-08-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaAdminEntryBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     *
     */
    private Long deptId;

    /**
     *
     */
    private Long userId;


    /**
     * 是否已有库存信息
     */
    private String isAsset;

    /**
     * 登记时间
     */
    @NotNull(message = "登记时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
    private Date entryDate;

    /**
     * 物品名称
     */
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 资产类别
     */
    @NotBlank(message = "资产类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String assetType;

    /**
     * 资产编码
     */
    @NotBlank(message = "资产编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String assetCode;

    /**
     * 数量
     */
    @NotBlank(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wareNum;

    /**
     * 办理人
     */
    @NotBlank(message = "办理人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transactor;

    /**
     * 库存剩余
     */
    private String leaveCount;

    /**
     * 备注
     */
    private String remarks;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;


    /**
     * 创建
     */
    private String createUser;


    /**
     * 出差开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /**
     * 出差结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /**
     * oss集合
     */
    private String attachment;
}
